package com.bw.play.api

import com.bw.lib_http.CommonHttpRetrofitAnnotation
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object PlayServerModule {

    @Provides
    @Singleton
    fun getPlayApiServer(@CommonHttpRetrofitAnnotation retrofit: Retrofit): PlayApiServer {
        return retrofit.create(PlayApiServer::class.java)
    }


}